﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="Search.aspx.cs" Inherits="SES.CMS.Search2" Title="Tìm kiếm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .lbtk
        {
        	color:#BE3128;
        	text-transform:uppercase;
        	font-weight:bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:Label ID="lbtk" CssClass="lbtk" runat="server"></asp:Label><br /><br />
        <asp:Label ID="Label2" runat="server" Text=" Danh mục sản phẩm: "></asp:Label>
        <asp:DropDownList ID="drp_loai" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drp_loai_SelectedIndexChanged"
            AppendDataBoundItems="true">
            <asp:ListItem Selected="True" Text="--All--" Value="0"></asp:ListItem>
        </asp:DropDownList>
        <asp:Label ID="Label1" runat="server" Text="    Thương hiệu: "></asp:Label>
        <asp:DropDownList ID="drp_TH" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drp_TH_SelectedIndexChanged"
            AppendDataBoundItems="true">
            <asp:ListItem Selected="True" Text="--All--" Value="0"></asp:ListItem>
        </asp:DropDownList>
    </div>
    <asp:Label ID="lbl" runat="server" Text="Loai"></asp:Label>
    <asp:Repeater ID="rpt" runat="server" OnItemCommand="rpt_ItemCommand">
        <ItemTemplate>
            <div class="product-box">
                <div class="product-img">
                    <a href="<%#"/SanPhamChiTiet/"+Eval("SanPhamID")+"/"+FriendlyUrl(Eval("TenSanPham").ToString())%>">
                        <img src="/Media/<%#Eval("HinhAnh")%>" /></a>
                    <asp:Button CommandArgument='<%#Eval("SanPhamID")%>' runat="server" ID="btDatMua"
                        Text="ĐẶT MUA" Width="90px" BorderWidth="0px" CssClass="btn" Height="25px" BackColor="#009345" />
                </div>
                <div class="product-detail">
                <div style="float:left; width:120px; height:95px;">
                    <a href="<%#"/SanPhamChiTiet/"+Eval("SanPhamID")+"/"+FriendlyUrl(Eval("TenSanPham").ToString())%>">
                        <%#Eval("TenSanPham")%></a>
                    <div class="dMota">
                        <%#Eval("Mota")%></div>
                </div>
                    <div style="float:left; color: #c20b47; font-size: 12px;font-weight:bold; text-transform: uppercase">
                   
                        Giá:
                      <%#(bool)(Int64.Parse(Eval("DonGia").ToString())==0)?"Liên hệ":Eval("DonGia","{0:0,0} VNĐ")%>
                    </div>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <div style="width: 100%; float: left; margin-top: 10px;">
        <div style="float: left;">
            <asp:ImageButton ID="cmdPrev" Visible="false" OnClick="cmdPrev_Click" runat="server"
                ImageUrl="~/images/prevpage.png" /></div>
        <div style="float: right;">
            <asp:ImageButton ID="cmdNext" Visible="false" OnClick="cmdNext_Click" runat="server"
                ImageUrl="~/images/nextpage.png" /></div>
    </div>
</asp:Content>
